
var db = require('mongoskin').db('localhost:27017/rockband'); 

var Aus=function(n){
	nombre=n;
	kill=function(){
		console.log(this.nombre);
	};
};

var mierda=new Aus("nombredelaus");
console.log(mierda);
var message = "Hello World";
var stringified = JSON.stringify(mierda);
console.log( stringified );

/*
var y = { nom='casa',
		 f=function(){console.log('chupenlan');};
		};


console.log(x.nombre);

console.log(JSON.stringify(x));


/*
db.collection('au').insert(x, function(err, result) {
    if (err) throw err;
    if (result) console.log('Added!');
});

//db.collection('bands').findOne( {_id: db.ObjectID.createFromHexString('4ff35177d15c223f0693ed7c')}, function(err, result) {
//    console.log('Band members of Road Crew');
//    console.log(result.members);
//});

db.collection('au').find().toArray(function(err, result) {
    if (err) throw err;
    console.log(result);
});
//
//db.collection('bands').find().toArray(function(err, result) {
//    if (err) throw err;
//    console.log(result);
//});
*/